
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type MemberCardBatchRequest struct {

	Title string `json:"title" form:"title"`

	TotalNum string `json:"total_num" form:"total_num"`

	UseStartTime string `json:"use_start_time" form:"use_start_time"`

	UseEndTime string `json:"use_end_time" form:"use_end_time"`

	UseDay string `json:"use_day" form:"use_day"`

	UseNum string `json:"use_num" form:"use_num"`

	Status string `json:"status" form:"status"`

	Sort string `json:"sort" form:"sort"`

	Qrcode string `json:"qrcode" form:"qrcode"`

	Remark string `json:"remark" form:"remark"`

	AddTime string `json:"add_time" form:"add_time"`

	UpdateTime string `json:"update_time" form:"update_time"`

}

func (r *MemberCardBatchRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *MemberCardBatchRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"title": "required",

		"total_num": "required",

		"use_start_time": "required",

		"use_end_time": "required",

		"use_day": "required",

		"use_num": "required",

		"status": "required",

		"sort": "required",

		"qrcode": "required",

		"remark": "required",

		"add_time": "required",

		"update_time": "required",

	}
}

func (r *MemberCardBatchRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *MemberCardBatchRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *MemberCardBatchRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
